<%@ page import="apralms.Project" %>



<div class="fieldcontain ${hasErrors(bean: projectInstance, field: 'code', 'error')} required">
	<label for="code">
		<g:message code="project.code.label" default="Code" />
		<span class="required-indicator">*</span>
	</label>
	<g:textField name="code" maxlength="10" required="" value="${projectInstance?.code}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: projectInstance, field: 'name', 'error')} required">
	<label for="name">
		<g:message code="project.name.label" default="Name" />
		<span class="required-indicator">*</span>
	</label>
	<g:textField name="name" maxlength="50" required="" value="${projectInstance?.name}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: projectInstance, field: 'type', 'error')} ">
	<label for="type">
		<g:message code="project.type.label" default="Type" />
		
	</label>
	<g:textField name="type" value="${projectInstance?.type}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: projectInstance, field: 'race', 'error')} ">
	<label for="race">
		<g:message code="project.race.label" default="Race" />
		
	</label>
	<g:textField name="race" value="${projectInstance?.race}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: projectInstance, field: 'period', 'error')} ">
	<label for="period">
		<g:message code="project.period.label" default="Period" />
		
	</label>
	<g:textField name="period" value="${projectInstance?.period}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: projectInstance, field: 'birthDate', 'error')} required">
	<label for="birthDate">
		<g:message code="project.birthDate.label" default="Birth Date" />
		<span class="required-indicator">*</span>
	</label>
	<g:datePicker name="birthDate" precision="day" value="${projectInstance?.birthDate}"  />
</div>

<div class="fieldcontain ${hasErrors(bean: projectInstance, field: 'preDefineParas', 'error')} ">
	<label for="preDefineParas">
		<g:message code="project.preDefineParas.label" default="Predefined Paras" />
		
	</label>
	<g:select name="preDefineParas" from="${Parameter.list()}" value="${projectInstance?.preDefineParas}" optionKey="name" multiple="true" />
</div>

<div class="fieldcontain ${hasErrors(bean: projectInstance, field: 'classParas', 'error')} ">
	<label for="classParas">
		<g:message code="project.classParas.label" default="ClassParas" />
		
	</label>
	<g:fieldValue bean="${projectInstance}" field="classParas"/>
</div>
